$(function () {
});

function getUserPermission() {
    $.ajax({
        url: "",
        dataType: "json",
        type: "post",
        success: function (result) {
            return result;
        }
    });
}

function permissionConfig(per) {
    $(".permission").each(function (i,permission) {
        for(var k=0; k<per.length; k++) {
            if($(permission).attr("data-permission") == per[k]) {
                break;
            }
            if(k == per.length-1) {
                $(permission).style("display","none");
            }
        }
    });
}